<template lang="jade">
h-loader-full(url='loader')
  h-data-updater(url='sginip/uprow')
  div
    m-title(icon='add',name='公司详情')
    table.single(v-for='n in list')
      mf-row(name='序号')
        span {{n.id}}
      mf-row(name='公司名称')
        span {{n.cname}}
      mf-row(name='公司性质')
        span {{n.nature}}
      mf-row(name='公司地址')
        span {{n.address}}
      mf-row(name='公司邮箱')
        span {{n.email}}
      mf-row(name='联系人姓名')
        span {{n.contact_name}}
      mf-row(name='联系人电话')
        span {{n.contact_mobile}}
      mf-row(name='公司简介')
        textarea(style='width:500px; height:200px;') {{n.intro}}
      mf-row(name='营业执照')
        <img :src="'http://image.mod.hesq.com.cn/xiongan/license/'+n.license" style='width:100px; height:100px'>
      mf-row(name='公司logo')
        <img :src="'http://image.mod.hesq.com.cn/xiongan/logo/'+n.logo" style='width:100px; height:100px'>
      mf-row(name='公司状态')
        span {{examine[n.status]}}
  m-title(icon='add',name='公司发布的岗位')
  table.list
      ml-header(data='序号,职位名称,薪资水平,工作区域,发布时间,学历要求,经验要求,工作地址,岗位审核状态,操作')
      tr(v-for='n in datail')
        td {{n.id}}
        td {{n.jobname}}
        td {{n.pay}}
        td {{n.area}}
        td {{n.time_create}}
        td {{n.education}}
        td {{n.experience}}
        td {{n.address}}
        td {{examine[n.status_check]}}
        td
          a(:href="'detail.html?id=' + n.id") 查看详情
</template>
----------------------------------------------------------------------------------------
<script>
import { MessageBox } from 'mint-ui'
export default {
	data () {
		return {
			loader:{
        list:'get_company/datail/'+this.$query.get('id'),
        datail:'get_job/datail/' + this.$query.get('id')
        },
      list:[],
      datail:[],
      examine:['待审核','审核通过','审核未通过'],
		}
	},
  mounted () {
  },
	methods: {
		loadAfter(data){
      this.list=data.list[0]
      this.datail = data.datail[0]
		},
	}
}
</script>
----------------------------------------------------------------------------------------
<style lang="less" scoped>
@import "../../../plugin/style/mixin";
#mymap{ .bsol(#f0f0f0, 2); }
	.command{ .bn; 
		button{ .fr; .mr(2%); }
	}
	input.input{ .mr(10); .r(5); outline:none; }
	.a{ .td(none); }
  img{ .w(80); }
.top { .bk(#006dcc); .c(#fff); .p(5); .td(none); dispaly:inline-block; .ml(5);}
	.command{ .bn; 
		button{ .fr; .mr(2%); float:right; }
	}
	input.input{ .mr(10); .r(5); outline:none; }
	.a{ .td(none); }
  img{ .w(200); .h(200); }
  textarea{ .w(500); .h(60); }
</style>